﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第十五题
//BC17 计算表达式的值
//https://www.nowcoder.com/practice/58457d27f91043edaf95b6591bb64fd6?tpId=107&tqId=33298&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D1%26pageSize%3D50%26search%3D%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int a = 40;
    int c = 212;

    int result = (-8 + 22) * a - 10 + c / 2;

    printf("%d", result);
    return 0;
}